<!DOCTYPE html>
<html lang="en">
  <head>
    <meta name="description" content="Vali is a responsive and free admin theme built with Bootstrap 4, SASS and PUG.js. It's fully customizable and modular.">
    <!-- Twitter meta-->
    <meta property="twitter:card" content="summary_large_image">
    <meta property="twitter:site" content="@pratikborsadiya">
    <meta property="twitter:creator" content="@pratikborsadiya">
    <!-- Open Graph Meta-->
    <meta property="og:type" content="website">
    <meta property="og:site_name" content="Vali Admin">
    <meta property="og:title" content="Vali - Free Bootstrap 4 admin theme">
    <meta property="og:url" content="http://pratikborsadiya.in/blog/vali-admin">
    <meta property="og:image" content="http://pratikborsadiya.in/blog/vali-admin/hero-social.png">
    <meta property="og:description" content="Vali is a responsive and free admin theme built with Bootstrap 4, SASS and PUG.js. It's fully customizable and modular.">
    <title>约健 - 超级管理员</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Main CSS-->
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/docs/css/main.css">
    <!-- Font-icon css-->
    <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  </head>
  <body class="app sidebar-mini rtl">
    <!-- Navbar-->
    {include file="commom/top"}
    <!-- Sidebar menu-->
    <div class="app-sidebar__overlay" data-toggle="sidebar"></div>
    {include file="commom/left"}
    <main class="app-content">
      <div class="app-title">
        <div>
          <h1><i class="fa fa-dashboard"></i> 欢迎超级系统管理员</h1>
          <p>Welcome Super System Administrator</p>
        </div>
        <ul class="app-breadcrumb breadcrumb">
          <li class="breadcrumb-item"><i class="fa fa-home fa-lg"></i></li>
          <li class="breadcrumb-item"><a href="#">Dashboard</a></li>
        </ul>
      </div>
      <div class="row">
        <div class="col-md-12">
          
          <div class="tile">
            <div class="tile-body">
              <table class="table table-hover table-bordered" id="sampleTable">
                <thead>
                  <tr>
                    <th>编号</th>
                    <th>教练名</th>
                    <th>头像</th>
                    <th>性别</th>
                    <th>年龄</th>
                    <th>执教经验</th>
                    <th>教练简介</th>
                    <th>所属俱乐部</th>
                    <th>审核状态</th>
                     <th>操作</th>
                  </tr>
                </thead>
                <tbody id="num">
                {volist name="info" id="vo"}
                {if $vo.coach_status!=0}
                <!-- ||$vo.coach_status!=3 -->
                  <tr>
                    <td>{$i}</td>
                    <td><a href="#">{$vo.coach_name}</a></td>
                    <td><img style="width:50px;height:50px;" src="__PUBLIC__/images/coach/{$vo.coach_pic}"></td>
                    {if $vo.cgender==1}
                                <td>女</td>
                                {else/}
                                <td>男</td>
                                {/if}
                    <td>{$vo.coach_age}岁</td>
                    <td>{$vo.coach_time}</td>
                    <td>{$vo.coach_desc}</td>
                    <td>{$vo.club_name}</td>
                    {if $vo.coach_status==1/}
                    <td>审核中</td>
                    <td><a href="{:url('master/pass',['coach_id'=>$vo.coach_id])}">通过</a>|<a href="{:url('master/fail',['coach_id'=>$vo.coach_id])}">不通过</a></td>

                     {elseif $vo.coach_status==2/}
                     <td>审核不通过</td>
                       <td><a href="#">已审核</a></td>

                   {elseif $vo.coach_status==3/}
                     <td>审核通过</td>
                       <td><a href="#">已审核</a></td>
                        {/if}
                  </tr>
                  {/if}
                  {/volist}
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </main>
    <script language="javascript" type="text/javascript">
      window.onload = function(){
        var oTable = document.getElementById("num");
        for(var i=0;i<oTable.rows.length;i++){
        oTable.rows[i].cells[0].innerHTML = (i+1);
      }
    }
    </script>
        <!-- Essential javascripts for application to work-->
        <script src="__PUBLIC__/docs/js/jquery-3.2.1.min.js"></script>
        <script src="__PUBLIC__/docs/js/popper.min.js"></script>
        <script src="__PUBLIC__/docs/js/bootstrap.min.js"></script>
        <script src="__PUBLIC__/docs/js/main.js"></script>
        <!-- The javascript plugin to display page loading on top-->
        <script src="__PUBLIC__/docs/js/plugins/pace.min.js"></script>
        <!-- Page specific javascripts-->
        <!-- Data table plugin-->
        <script type="text/javascript" src="__PUBLIC__/docs/js/plugins/jquery.dataTables.min.js"></script>
        <script type="text/javascript" src="__PUBLIC__/docs/js/plugins/dataTables.bootstrap.min.js"></script>
        <script type="text/javascript">$('#sampleTable').DataTable();</script>
  </body>
</html>